import React from "react";
import ReactDOM from "react-dom/client";
import "./index.less";
import Vote from "./views/Vote";

/** REDUX */
import store from "./store";
import context from "./ThemeContext";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <React.StrictMode>
    <React.Fragment>
      <div className="index-box">
        <context.Provider
          value={{
            store,
          }}
        >
          <Vote></Vote>
        </context.Provider>
      </div>
    </React.Fragment>
  </React.StrictMode>
);
